<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<style type="text/css">
   th{
   text-align: left;
   }
</style>


    <form id="pagerForm" method="post" action="<%=basePath%>goods/select.do">
	<input type="hidden" name="pageNum" value="${requestScope.count.pageNum}" />
	<input type="hidden" name="s_time" value="${requestScope.count.s_time}" />
	<input type="hidden" name="numPerPage" value="${requestScope.count.numPerPage}" />
	<input type="hidden" name="s_name" value="${requestScope.count.s_name}" />
	<input type="hidden" name="id" value="${requestScope.count.id}" />
	<input type="hidden" name="name" value="${requestScope.count.name}" />
    </form>
<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="<%=basePath%>goods/select.do" method="post">
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td>
					仓库名称：<input bringbackname="district.deptid"  type="hidden"/>
				<input class="required" bringbackname="district.deptname" name="name" type="text" value="${requestScope.count.name}" readonly/>
				</td>
				<td>
				<a class="btnLook" href="<%=basePath%>dept/showtree.do" lookupGroup="district">查找带回</a>	
				</td>
				<td>
					 促销品名称：<input type="text" name="s_name" value="${requestScope.count.s_name}"/> 
				</td>
				<td>
				            产品编号：<input type="text" name="id" value="${requestScope.count.id}"/> 
			    </td>
				<td>
				预警伐值：<input type="text" value="${requestScope.count.s_time}" name="s_time" readonly="readonly" class="date" name="dateStart">
				</td>
			</tr>
		</table>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button>
				</div></div></li>
			</ul>
		</div>
	</div>
	</form>

	<div class="panelBar">
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
		<tr>
		<th></th>
		<th>产品编号</th>
		<th>商品名称</th>
		<th>过期时间</th>
		<th>当前库存</th>
        <th>数量</th>
        <th>入口时间</th>
        <th>入库流水号</th>
        </tr>
        </thead>
		<tbody>
			<c:forEach items="${requestScope.list}" var="sec" varStatus="sta">
            <tr><td>${sta.index+1 }</td><td>${sec.id}</td><td>${sec.name}</td><td>${sec.e_time}</td><td>${sec.s_name}</td>
            <td>${sec.s_sum}</td><td>${sec.s_time}</td><td>${sec.s_id}
            </td></tr></c:forEach>
		</tbody>
	</table>
	<!-- 用来绘制分页的界面 -->
	
		<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" 

onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="10">10</option>
				<option value="20">20</option>
				<option value="50">50</option>
			</select>
			<span>条，共${requestScope.count.totalCount}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="${requestScope.count.totalCount}" numPerPage="${requestScope.count.numPerPage}" pageNumShown="5" currentPage="${requestScope.count.pageNum}"></div>
	</div>
	
</div>
   

 

